<?php

class Widget_TalktangleSignupController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
    $form  =  $this->view->form =  new User_Form_Signup_Account();   
    $this->view->type = 'user';    
    $request = Zend_Controller_Front::getInstance()->getRequest();
    $params = $request->getParams();
    if($params['controller'] == 'type' && $params['action'] == '1' ){
        $form->populate(array(
            'type'=>'company',
        ));
        $this->view->type = 'company';
    };

  }

  public function getCacheKey()
  {
    //return true;
  }
}